package com.loc;

/* compiled from: TCell.java */
/* loaded from: classes2.dex */
public final class dh extends ge {
    private static int a(gd gdVar) {
        return gdVar.b();
    }

    public static int a(gd gdVar, int i, byte b, int i2, int i3) {
        gdVar.b(4);
        c(gdVar, i3);
        b(gdVar, i2);
        a(gdVar, i);
        a(gdVar, b);
        return a(gdVar);
    }

    public static int a(gd gdVar, int[] iArr) {
        gdVar.a(4, iArr.length, 4);
        for (int length = iArr.length - 1; length >= 0; length--) {
            gdVar.a(iArr[length]);
        }
        return gdVar.a();
    }

    private static void a(gd gdVar, byte b) {
        gdVar.a(1, b);
    }

    private static void a(gd gdVar, int i) {
        gdVar.b(0, i);
    }

    public static int b(gd gdVar, int[] iArr) {
        gdVar.a(4, iArr.length, 4);
        for (int length = iArr.length - 1; length >= 0; length--) {
            gdVar.a(iArr[length]);
        }
        return gdVar.a();
    }

    private static void b(gd gdVar, int i) {
        gdVar.b(2, i);
    }

    private static void c(gd gdVar, int i) {
        gdVar.b(3, i);
    }
}
